def sortArray(arr):
  import time
  start=time.time()
  for i in range(len(arr)):
    for j in range(i+1,len(arr)):
      if arr[i]>arr[j]:
        temp = arr[i]
        arr[i] = arr[j]
        arr[j] = temp
  print(arr)
  end=time.time()
  print(end-start)
sortArray([3,1,4,6,17,12,23,34,45,56,99,100,29])